<template>
<!--    <div class="top-bar">-->
<!--        <div class="top-bar-content">-->
<!--            &lt;!&ndash; Logo区域 &ndash;&gt;-->
<!--            <div class="logo">-->
<!--                <div class="icon"></div>-->
<!--                <span>皮皮虾</span>-->
<!--            </div>-->

<!--            &lt;!&ndash; 搜索框 &ndash;&gt;-->
<!--            <div class="search-box">-->
<!--                <input type="text" placeholder="搜索有趣的内容..." />-->
<!--            </div>-->

<!--            &lt;!&ndash; 通知区域 &ndash;&gt;-->
<!--            <div class="notification">-->
<!--                <i class="fa fa-bell"></i>-->
<!--                <span class="badge">3</span>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
</template>

<script setup>
// 顶部导航交互逻辑可在此添加
</script>

<style scoped>
.top-bar {
    height: 60px; /* 与底部导航高度一致 */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.top-bar-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FF6B35; /* 皮皮虾主色 */
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #FF6B35;
}

/* 搜索框样式 */
.search-box {
    flex: 1;
    max-width: 300px;
    margin: 0 16px;
}

.search-box input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #eee;
    padding: 0 16px;
    outline: none;
    font-size: 14px;
    background-color: #f5f5f5;
}

/* 通知样式 */
.notification {
    position: relative;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 18px;
    height: 18px;
    background-color: #FF6B35;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .search-box {
        display: none; /* 移动端隐藏搜索框 */
    }
}
</style>
